package com.freely.service.impl;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSONObject;
import com.freely.dao.MessageDao;
import com.freely.domain.Message;
import com.freely.service.MessageService;

@Transactional
public class MessageServiceImpl implements MessageService {
	private MessageDao messageDao;

	public void setMessageDao(MessageDao messageDao) {
		this.messageDao = messageDao;
	}

	@Override
	public List<Message> findByCondition(DetachedCriteria criteria) {
		return messageDao.findByCondition(criteria);
	}

	@Override
	public int update(JSONObject modifyObj, JSONObject conditionObj) {
		return messageDao.update(modifyObj,conditionObj);
	}
	
	
}
